﻿using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class Renew : Message
    {
        public static int TYPE = 7;
        public static int ID = 127;

        private int clubid;

        public int Clubid
        {
            get
            {
                return clubid;
            }

            set
            {
                clubid = value;
            }
        }
        public static Renew Create(int _clubid) {
            Renew rw = new Renew();
            rw.clubid = _clubid;
            return rw;
        }
        public void decode(core.io.Input _in)
        {

        }
        public void encode(Output _out)
        {
            _out.writeInt(clubid);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "clubid"+ clubid;
        }
    }
}